/*
 ***************************************************************************************
 *  Copyright (C) 2006 EsperTech, Inc. All rights reserved.                            *
 *  http://www.espertech.com/esper                                                     *
 *  http://www.espertech.com                                                           *
 *  ---------------------------------------------------------------------------------- *
 *  The software in this package is published under the terms of the GPL license       *
 *  a copy of which has been included with this distribution in the license.txt file.  *
 ***************************************************************************************
 */
package com.espertech.esper.common.internal.epl.join.queryplan;

import com.espertech.esper.common.client.type.EPTypeClass;

/**
 * Contains the query plan for all streams.
 */
public class QueryPlan {
    public final static EPTypeClass EPTYPE = new EPTypeClass(QueryPlan.class);

    private QueryPlanIndex[] indexSpecs;
    private QueryPlanNode[] execNodeSpecs;

    /**
     * Ctor.
     *
     * @param indexSpecs    - specs for indexes to create
     * @param execNodeSpecs - specs for execution nodes to create
     */
    public QueryPlan(QueryPlanIndex[] indexSpecs, QueryPlanNode[] execNodeSpecs) {
        this.indexSpecs = indexSpecs;
        this.execNodeSpecs = execNodeSpecs;
    }

    /**
     * Return index specs.
     *
     * @return index specs
     */
    public QueryPlanIndex[] getIndexSpecs() {
        return indexSpecs;
    }

    /**
     * Return execution node specs.
     *
     * @return execution node specs
     */
    public QueryPlanNode[] getExecNodeSpecs() {
        return execNodeSpecs;
    }
}
